package com.dfbz.demo01_类加载器的使用;

import com.sun.java.accessibility.AccessBridge;
import org.junit.Test;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_类加载器的种类 {
    @Test
    public void test1(){
        // Bootstrap类加载器是获取不到的,为null
        System.out.println("Bootstrap ClassLoader: "+ String.class.getClassLoader());

        // jre\lib\ext\access-bridge-64.jar
        System.out.println("ExtClassLoader ClassLoader: "+ AccessBridge.class.getClassLoader());

        System.out.println("AppClassLoader ClassLoader: "+ Demo02_类加载器的种类.class.getClassLoader());
    }
}